import request from '@UTILS/api/request'
import config from '@UTILS/config'
import store from 'store'






export default {
    // 注册
    register: (params, opt) => {
        return request.post(config.api.serviceUrl + '/register', opt, params, false)
    },
    // 验证手机验证码
    checkPhoneCode: (params, opt) => {
        return request.post(config.api.serviceUrl + '/check_code', opt, params, false)
    },
    // 获取手机验证码
    getPhoneCode: (params, opt) => {
        return request.post(config.api.serviceUrl + '/mobile_code', opt, params, false)
    },
    // 获取图形验证码
    getPicCode: (opt) => {
        return request.get(config.api.serviceUrl + '/get_captcha', opt, null, false)
    },
    // 找回密码
    retrievePassword: (params, opt) => {
        return request.post(config.api.serviceUrl + '/recover_password', opt, params, false)
    },
    // 登录
    userLogin: (params, opt) => {
        return request.post(config.api.serviceUrl + '/login', opt, params, false)
    },
    // 登录 微信
    loginWechat: (opt) => {
        return request.get(config.api.apiUrl + '/auth_info', opt, '', false)
    },
    // 登录 微信
    wechatCheckMobile: (params, opt) => {
        return request.get(config.api.apiUrl + '/check_mobile', opt, params, false)
    },
    // 我的页面
    myCenter: (opt) => {
        return request.get(config.api.apiUrl + '/index', opt)
    },
    // 账户余额详情
    balanceDetail: (params, opt) => {
        return request.get(config.api.apiUrl + '/balance_logs', opt, params)
    },
    // 代言人收益列表
    spokesmanEarn: (params, opt) => {
        return request.get(config.api.apiUrl + '/earnings', opt, params)
    },
    // 获取用户基础配置
    getUserConfig: (opt) => {
        return request.get(config.api.apiUrl + '/config', opt)
    },
    // 账户安全首页
    getSafetyHome: (opt) => {
        return request.get(config.api.apiUrl + '/safety', opt)
    },
    // 绑定新手机号
    bindPhone: (params, opt) => {
        return request.post(config.api.apiUrl + '/bind_mobile', opt, params)
    },
    // 修改登录密码
    changePassword: (params, opt) => {
        return request.post(config.api.apiUrl + '/change_password', opt, params)
    },
    // 修改支付密码
    changePayPassword: (params, opt) => {
        return request.post(config.api.apiUrl + '/change_pay_password', opt, params)
    },
    // 绑定支付宝
    bindAlipay: (params, opt) => {
        return request.post(config.api.apiUrl + '/bind_alipay', opt, params)
    },
    // 绑定淘宝号
    bindTaobao: (params, opt) => {
        return request.post(config.api.apiUrl + '/bind_taobao', opt, params)
    },
    // 商品首页
    home: (opt) => {
        return request.get(config.api.serviceUrl + '/index', opt, null, false)
    },
    // 商品列表
    goodsList: (params, opt) => {
        return request.get(config.api.serviceUrl + '/goods', opt, params, false)
    },
    // 商品详情
    goodDetail: (id, opt) => {
        if (store.get('token')) {
            return request.get(config.api.serviceUrl + '/goods/' + id, opt, null, true)
        } else {
            return request.get(config.api.serviceUrl + '/goods/' + id, opt, null, false)
        }
    },
    // 个人资料
    personDes: (opt) => {
        return request.get(config.api.apiUrl + '/detail', opt)
    },
    // 个人资料更新
    personInfoUpdate: (params, opt) => {
        return request.post(config.api.apiUrl + '/detail', opt, params)
    },

    // 用户反馈
    feedbackProblem: (params, opt) => {
        return request.get(config.api.apiUrl + '/feedback', opt, params)
    },
    // 上传图片
    uploadPic: (file, type, opt) => {
        return request.postFile(config.api.uploadUrl + '?type=' + type, file, opt)
    },
    // 提现申请信息
    withdrawInfo: (opt) => {
        return request.get(config.api.apiUrl + '/withdraw', opt)
    },
    // 提现申请事件
    withdrawApplyCommit: (params, opt) => {
        return request.post(config.api.apiUrl + '/withdraw', opt, params)
    },
    // 问题反馈
    confirmProblem: (sn, params, opt) => {
        return request.post(config.api.apiUrl + '/feedback/' + sn, opt, params)
    },
    // 获取订单信息
    getOrderInfo: (sn, opt) => {
        return request.get(config.api.apiUrl + '/task/' + sn + '/get_order', opt)
    },
    // 提交订单
    putOrderInfo: (sn, params, opt) => {
        return request.put(config.api.apiUrl + '/task/' + sn + '/submit_order', opt, params)
    },
    // 用户协议详情
    userAgreeArticle: (params, opt) => {
        return request.get(config.api.serviceUrl + '/article_by_code', opt, params, false)
    },
    // 微信配置信息获取
    getWxConfig: (params, opt) => {
        return request.post(config.api.serviceUrl + '/share_config', opt, params, false)
    },
    // 注册成功后推荐活动列表
    userActivityList: (opt) => {
        return request.get(config.api.apiUrl + '/activity_for_registered', opt)
    },
    // 意见反馈
    feedbackProblemContent: (params, opt) => {
        return request.post(config.api.apiUrl + '/feedback', opt, params)
    },
    // 反馈进度列表
    feedBackProgressList: (params, opt) => {
        return request.get(config.api.apiUrl + '/feedback_list', opt, params)
    },
    // 评价反馈回复
    feedbackComment: (params, opt) => {
        return request.put(config.api.apiUrl + '/feedback_comment', opt, params)
    },
    // 是否有未读回复
    unReadAnswer: (params, opt) => {
        return request.get(config.api.apiUrl + '/count_unread', opt, params)
    },
    // 最后一次阅读时间
    lastReadTime: (params, opt) => {
        return request.put(config.api.apiUrl + '/update_last_read', opt, params)
    },
    logger: (type, params) => {
        return request.post(config.api.loggerUrl + '/' + type, {}, {
            href: window.location.href,
            ...params
        });
    },

    // 公告列表
    articleList: (params, opt) => {
        return request.get(config.api.serviceUrl + '/notices', opt, params, false)
    },
    // 公告详情
    articleDetail: (id, opt) => {
        return request.get(config.api.serviceUrl + '/notices/' + id, opt, {}, false)
    },
    // 文章详情
    articleByCode: (code, opt) => {
        return request.get(config.api.serviceUrl + '/article_by_code', opt, {
            code: code
        }, false)
    },
    // 我的团队
    userTeam: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_team', opt, params)
    },
    // 注册
    registerTeam: (params, opt) => {
        return request.post(config.api.apiUrl + '/register', opt, params)
    },
    // 用户注册
    userRegister: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_register', opt, params, false)
    },
    // 给自己的团队激活
    activateUserByOthers: (params, opt) => {
        return request.post(config.api.apiUrl + '/activate_user_by_others', opt, params)
    },
    // 商户转账
    userTransfer: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_transfer', opt, params)
    },
    // 注册用户自己给自己激活
    activateUserBySelf: (opt) => {
        return request.post(config.api.apiUrl + '/activate_user_by_self', opt)
    },
    // 关联商户
    userRelation: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_relation', opt, params)
    },
    // 关联列表
    relationList: (opt) => {
        return request.post(config.api.apiUrl + '/relation_list', opt)
    },
    // 解除关联
    removeRelation: (params, opt) => {
        return request.post(config.api.apiUrl + '/remove_relation', opt, params)
    },
    // 切换关联
    exchangeAccount: (params, opt) => {
        return request.post(config.api.apiUrl + '/exchange_account', opt, params)
    },
    // 查询升级信息
    findUserApplicationInfo: (opt) => {
        return request.post(config.api.apiUrl + '/find_user_application_info', opt)
    },
    // 申请升级
    applyUpgrade: (opt) => {
        return request.post(config.api.apiUrl + '/apply_upgrade', opt)
    },
    // 撤销升级
    withdrawApplication: (params, opt) => {
        return request.post(config.api.apiUrl + '/withdraw_application', opt, params)
    },
    // 审核列表(待审核)
    applicationList: (params, opt) => {
        return request.post(config.api.apiUrl + '/application_list', opt, params)
    },
    // 审核列表(已审核)
    applicationCheckedList: (params, opt) => {
        return request.post(config.api.apiUrl + '/application_checked_list', opt, params)
    },
    // 同意审核
    examineApplication: (params, opt) => {
        return request.post(config.api.apiUrl + '/examine_application', opt, params)
    },
    // 审核历史
    applicationHistory: (params, opt) => {
        return request.post(config.api.apiUrl + '/application_checked_history', opt, params)
    },
    // 上传图片
    uploadFile: (flie, opt) => {
        return request.postFile(config.api.uploadUrl, flie, opt)
    },
    // 修改头像
    updateUserAvatar: (params, opt) => {
        return request.post(config.api.apiUrl + '/update_user_avatar', opt, params)
    },
    // 上传支付宝和微信付款码
    uploadReceivableCode: (params, opt) => {
        return request.post(config.api.apiUrl + '/upload_receivable_code', opt, params)
    },
    // 上传打款凭证
    uploadPaymentScreenshot: (params, opt) => {
        return request.post(config.api.apiUrl + '/upload_payment_screenshot', opt, params)
    },
    // 商品分类
    productCategory: (params, opt) => {
        return request.post(config.api.serviceUrl + '/product_category', opt, params, false)
    },
    // 获取团队信息
    userCollectMoneyNumber: (opt) => {
        return request.get(config.api.apiUrl + '/user_collect_money_number', opt)
    },
    // 获取团队星级信息
    getLevelNumber: (opt) => {
        return request.get(config.api.apiUrl + '/get_level_number', opt)
    },
    // 商品收藏状态
    collcetionStatus: (id, opt) => {
        return request.post(config.api.serviceUrl + '/user/find_collection', opt, {
            product_id: id
        })
    },
    // 商品加入收藏
    addCollcetion: (id, opt) => {
        return request.post(config.api.serviceUrl + '/user/add_collection', opt, {
            product_id: id
        })
    },
    // 商品取消收藏
    cancelCollcetion: (id, opt) => {
        return request.post(config.api.serviceUrl + '/user/delete_collection', opt, {
            product_id: id
        })
    },
    // 加入购物车
    addShoppingCart: (id, opt) => {
        return request.post(config.api.serviceUrl + '/user/add_shopping_cart', opt, {
            product_id: id
        })
    },

    // 收货地址列表
    getAddressList: (opt) => {
        return request.post(config.api.apiUrl + '/get_address_list', opt)
    },
    // 获取省
    getProvinceList: (opt) => {
        return request.post(config.api.apiUrl + '/get_province_list', opt)
    },
    // 获取市区
    getCityAreaList: (params, opt) => {
        return request.post(config.api.apiUrl + '/get_city_area_list', opt, params)
    },
    // 添加收货地址
    addAddress: (params, opt) => {
        return request.post(config.api.apiUrl + '/add_address', opt, params)
    },
    // 收藏列表
    collectionList: (params, opt) => {
        return request.post(config.api.apiUrl + '/collection_list', opt, params)
    },
    // 编辑收货地址
    editUserAddress: (params, opt) => {
        return request.post(config.api.apiUrl + '/edit_user_address', opt, params)
    },
    // 获取地址详情
    addressDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/address_detail', opt, params)
    },
    // 热门商品
    hotProduct: (opt) => {
        return request.post(config.api.serviceUrl + '/hot_product', opt, {}, !1)
    },
    // 商品列表
    categoryProductList: (params, opt) => {
        return request.post(config.api.serviceUrl + '/category_product', opt, params, false)
    },
    // 购物车列表
    shoppingCartProductList: (params, opt) => {
        return request.post(config.api.apiUrl + '/shopping_cart_list', opt, params)
    },
    // 购物车修改数量
    shoppingCartProductChange: (id, number, opt) => {
        return request.post(config.api.apiUrl + '/change_carts_number_by_input', opt, {
            id: id,
            number: number
        })
    },
    // 获取默认收货地址
    getDefaultAddress: (opt) => {
        return request.post(config.api.apiUrl + '/get_default_address', opt)
    },
    // 订单列表
    orderList: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_list', opt, params)
    },
    // 获取选中的购物车商品信息
    checkedShoppingCartProduct: (params, opt) => {
        return request.post(config.api.apiUrl + '/checked_shopping_cart_product', opt, params)
    },
    // 直接购买
    buyProductByDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/buy_product_by_detail', opt, params)
    },
    // 购物车购买商品
    buyProductByCart: (params, opt) => {
        return request.post(config.api.apiUrl + '/buy_product_by_cart', opt, params)
    },
    // 单个删除购物车
    deleteShoppingCart: (params, opt) => {
        return request.post(config.api.apiUrl + '/delete_shopping_cart', opt, params)
    },
    // 批量删除购物车
    batchDeletShoppingCate: (params, opt) => {
        return request.post(config.api.apiUrl + '/batch_delete_shopping_cate', opt, params)
    },
    // 支付订单
    payOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/pay_order', opt, params)
    },
    // 订单详情
    orderDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_detail', opt, params)
    },
    // 订单退货
    orderRefunds: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_refunds', opt, params)
    },
    // 取消订单
    cancelOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/cancel_order', opt, params)
    },
    // 确认收货
    sureOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/sure_order', opt, params)
    },
    // 退款列表
    refoundList: (params, opt) => {
        return request.post(config.api.apiUrl + '/refound_list', opt, params)
    },
    // 充值选项
    activateCoinRechargeConfigs: (opt) => {
        return request.get(config.api.apiUrl + '/activate_coin_recharge_configs', opt)
    },
    // 生成充值订单
    createActivateCoinRechargeOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/create_activate_coin_recharge_order', opt, params)
    },
    // 微信H5支付
    wechatPayH5Configs: (params, opt) => {
        return request.post(config.api.apiUrl + '/wechat/pay/h5', opt, params)
    },
    // 微信APP支付
    wechatPayAppConfigs: (params, opt) => {
        return request.post(config.api.apiUrl + '/wechat/pay/app_wechat_pay', opt, params)
    },
    // 删除收货地址
    deleteAddress: (params, opt) => {
        return request.post(config.api.apiUrl + '/delete_address', opt, params)
    },
    // 广告列表
    getAdList: (opt) => {
        return request.get(config.api.serviceUrl + '/get_ad_list', opt, {}, !1)
    },
    // 搜索商品
    productSearch: (params, opt) => {
        return request.post(config.api.serviceUrl + '/product_search', opt, params, !1)
    },
    // 兑换专区
    exchangeProducts: (params, opt) => {
        return request.post(config.api.serviceUrl + '/exchange_products', opt, params, !1)
    },
    // 计算订单价格
    countProductPrice: (params, opt) => {
        return request.post(config.api.apiUrl + '/count_product_price', opt, params)
    },
    // 获取订单优惠积分比例
    rateInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/rate_info', opt, params)
    },
    // 红包，代金券 列表
    redPacketList: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_red_packets', opt, params)
    },
    // 红包，代金券 领取
    redPacketDraw: (params, opt) => {
        return request.post(config.api.apiUrl + '/draw_red_product', opt, params)
    },

    // 获取子订单列表
    productOrderList: (params, opt) => {
        return request.post(config.api.apiUrl + '/product_order_list', opt, params)
    },
    // 获取子订单详情
    orderProductDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_product_detail', opt, params)
    },
    // 完成订单
    finishOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/finish_order', opt, params)
    },
    // 评价订单
    orderComment: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_comment', opt, params)
    },
    // 商品评价列表
    commentList: (params, opt) => {
        return request.post(config.api.serviceUrl + '/comment_list', opt, params, false)
    },
    // 商品退款详情
    orderRefundDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_refund_detail', opt, params)
    },
    // 商品退款驳回列表
    rejectOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/reject_order', opt, params)
    },
    // 商品退款驳回详情
    rejectOrderDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/reject_order_detail', opt, params)
    },
    // 提货区商品
    withdrawGoods: (params, opt) => {
        return request.post(config.api.serviceUrl + '/withdraw_goods', opt, params)
    },
    // 实名认证记录
    certificationInfo: (opt) => {
        return request.post(config.api.apiUrl + '/certification_info', opt)
    },
    // 提交实名认证
    userCertification: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_certification', opt, params)
    },
    // 创富特区列表
    wealthList: (params, opt) => {
        return request.post(config.api.apiUrl + '/wealth_list', opt, params)
    },
    // 创富特区购买
    createSpeciaPushOrder: (opt) => {
        return request.post(config.api.apiUrl + '/create_special_push_order', opt)
    },
    // 创富特区支付
    payOrderBalance: (params, opt) => {
        return request.post(config.api.apiUrl + '/pay_order_balance', opt, params)
    },
    // 批发专区列表
    wholesaleList: (params, opt) => {
        return request.post(config.api.apiUrl + '/wholesale_list', opt, params)
    },
    // 批发专区提交订单
    orderSubmit: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_submit', opt, params)
    },
    // 批发专区余额支付
    wholesaleBalancePay: (params, opt) => {
        return request.post(config.api.apiUrl + '/wholesale_balance_pay', opt, params)
    },
    // 创富特区订单列表
    wealthOrderList: (params, opt) => {
        return request.post(config.api.apiUrl + '/wealth_order_list', opt, params)
    },
    // 创富特区订单取消订单
    cancelConsignmentOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/cancel_consignment_order', opt, params)
    },
    // 批发特区订单列表
    wholesaleOrderList: (params, opt) => {
        return request.post(config.api.apiUrl + '/wholesale_order_list', opt, params)
    },
    // 批发特区订单列表取消订单
    wholesaleOrderCancel: (params, opt) => {
        return request.post(config.api.apiUrl + '/wholesale_order_cancel', opt, params)
    },
    // 用户订单列表
    userConsignmentList: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_consignment_list', opt, params)
    },
    // 收益转余额
    incomeToBalance: (params, opt) => {
        return request.post(config.api.apiUrl + '/income_to_balance', opt, params)
    },
    // 支付宝支付
    alipayPay: (params, opt) => {
        return request.post(config.api.apiUrl + '/alipay_pay', opt, params)
    },










    // 记录 record
    // 余额
    // IPS记录
    userIpsLog: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_ips_log', opt, params)
    },
    recordBalance: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_balance_logs', opt, params)
    },
    // 提货券 记录
    recordCoupon: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_coupon_balance_logs', opt, params)
    },
    // 消费红包 记录
    recordExcellent: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_excellent_quality_balance_logs', opt, params)
    },
    // 激活币
    recordActivateCoin: (params, opt) => {
        return request.post(config.api.apiUrl + '/activate_coin_logs', opt, params)
    },
    // 兑换积分
    recordExchangeCoin: (params, opt) => {
        return request.post(config.api.apiUrl + '/exchange_code_logs', opt, params)
    },
    // 特惠积分
    recordSpecialCoin: (params, opt) => {
        return request.post(config.api.apiUrl + '/special_code_logs', opt, params)
    },
    // 预收益红包
    recordIncomeRedPacket: (params, opt) => {
        return request.post(config.api.apiUrl + '/income_red_packet_list', opt, params)
    },
    // 预收益代金券
    recordIncomeCashCoupon: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_income_cash_coupon_list', opt, params)
    },
    // 消费红包转余额
    balanceToExcellent: (params, opt) => {
        return request.post(config.api.apiUrl + '/balance_transfer', opt, params)
    },

    // 代金券
    userCashCouponLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_cash_coupon_logs', opt, params)
    },
    // 配额记录
    quotaLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/quota_logs', opt, params)
    },
    // 提货额明细
    withdrawQuotaLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/withdraw_quota_logs', opt, params)
    },
    // 收益明细
    incomeLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/income_logs', opt, params)
    },
    // 承兑商列表
    acceptList: (params, opt) => {
        return request.post(config.api.apiUrl + '/accept_list', opt, params)
    },
    // 承兑商售出
    userSellIps: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_sell_ips', opt, params)
    },
    // 绑定微信账号
    userBindWechat: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_bind_wechat', opt, params)
    },
    // 绑定支付宝账号
    userBindAlipay: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_bind_alipay', opt, params)
    },
    // 绑定银行卡
    userBindBank: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_bind_bank', opt, params)
    },
    // 获取售出及兑换比例
    getConfig: (params, opt) => {
        return request.post(config.api.apiUrl + '/get_config', opt, params)
    },
    // 获取承兑商价格
    acceptInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/accept_info', opt, params)
    },
    // IPS售出列表
    userIpsSellLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_ips_sell_logs', opt, params)
    },
    // 积分兑换IPS
    userPointTransferIps: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_point_transfer_ips', opt, params)
    },
    // 积分兑换IPS
    pointExchangeIpsOrderLog: (params, opt) => {
        return request.post(config.api.apiUrl + '/point_exchange_ips_order_log', opt, params)
    },
    // 获取冻结积分数值
    userTotalFrozenPoints: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_total_frozen_points', opt, params)
    },
    // 获取积分加速记录
    orderQuickenLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/order_quicken_logs', opt, params)
    },
    // IPS兑换积分详情
    pointExchangeOrderInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/point_exchange_order_info', opt, params)
    },
    // 冻结积分解冻
    releaseFrozenConsumePoint: (params, opt) => {
        return request.post(config.api.apiUrl + '/release_frozen_consume_point', opt, params)
    },
    // 冻结积分记录
    userFrozenPoint: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_frozen_point', opt, params)
    },
    // 商品详情
    productDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/product_detail', opt, params)
    },
    // 获取需提交商品信息
    buyProductInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/buy_product_info', opt, params)
    },
    // 获取购物车商品详情
    cartProductInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/cart_product_info', opt, params)
    },











    // --------------------------------------------------------------------------------------------------
    // 活动专区数据
    regionProducts: (params, opt) => {
        return request.post(config.api.serviceUrl + '/region_products', opt, params, false)
    },
    // 获取SKU信息
    skuDetail: (params, opt) => {
        return request.post(config.api.apiUrl + '/sku_detail', opt, params)
    },
    // 积分明细
    userConsumePointLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_consume_point_logs', opt, params)
    },
    // 专题接口
    regionAreaMroducts: (params, opt) => {
        return request.post(config.api.serviceUrl + '/region_area_products', opt, params, false)
    },
    // 专题详情
    getRegionAreaProducts: (params, opt) => {
        return request.post(config.api.serviceUrl + '/get_region_area_products', opt, params, false)
    },
    // 红包记录
    userSharingRedLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_sharing_red_logs', opt, params)
    },
    // 充值前置接口
    rechangePreposition: (params, opt) => {
        return request.post(config.api.apiUrl + '/rechange_preposition', opt, params)
    },
    // 余额充值
    doRechangeOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/do_rechange_order', opt, params)
    },
    // 余额提现
    doUserWithdraw: (params, opt) => {
        return request.post(config.api.apiUrl + '/do_user_withdraw', opt, params)
    },
    // 竞拍历史列表
    partakeActivityList: (params, opt) => {
        return request.post(config.api.apiUrl + '/partake_activity_list', opt, params)
    },
    // 选择产品进行抢购
    partakeActivity: (params, opt) => {
        return request.post(config.api.apiUrl + '/partake_activity', opt, params)
    },
    // 获取当期数据带用户信息
    getActivityInfoUser: (params, opt) => {
        return request.bgPost(config.api.apiUrl + '/get_activity_info', opt, params)
    },
    // 获取抢购历史详情
    activityLogInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/activity_log_info', opt, params)
    },
    // 获取抢购历史详情列表数据
    activityLogList: (params, opt) => {
        return request.post(config.api.apiUrl + '/activity_log_list', opt, params)
    },
    // 获取自动抢拍设置
    getUserAuctionOnLine: (params, opt) => {
        return request.post(config.api.apiUrl + '/get_user_auction_on_line', opt, params)
    },
    // 设置自动抢拍
    editUserAuctionOnLine: (params, opt) => {
        return request.post(config.api.apiUrl + '/edit_user_auction_on_line', opt, params)
    },
    // 取消抢拍
    cancelUserAuctionOnLine: (params, opt) => {
        return request.post(config.api.apiUrl + '/cancel_user_auction_on_line', opt, params)
    },
    // 自动抢拍阅读状态提示
    readUserAuctionOnLine: (params, opt) => {
        return request.post(config.api.apiUrl + '/read_user_auction_on_line', opt, params)
    },
    // 提货券转账
    transferCouponBalance: (params, opt) => {
        return request.post(config.api.apiUrl + '/transfer_coupon_balance', opt, params)
    },
    // 资金明细筛选项
    prepositionUserExcellentQualityBalanceLog: (params, opt) => {
        return request.post(config.api.apiUrl + '/preposition_user_excellent_quality_balance_log', opt, params)
    },
    // 提现记录
    userWithdrawLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_withdraw_logs', opt, params)
    },
    // 充值记录
    userRechargeLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_recharge_logs', opt, params)
    },
    // 获取当期数据
    getActivityInfo: (params, opt) => {
        return request.bgPost(config.api.serviceUrl + '/get_activity_info', opt, params, false)
    },
    // 拼购商品列表
    pingouList: (params, opt) => {
        return request.post(config.api.serviceUrl + '/pingou_list', opt, params, false)
    },
    // 拼购商品详情
    getPingouInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/get_pingou_info', opt, params)
    },
    // 拼购
    doParticipatePingouProduct: (params, opt) => {
        return request.post(config.api.apiUrl + '/do_participate_pingou_product', opt, params)
    },
    // 拼购订单列表
    pingouProductPrizeList: (params, opt) => {
        return request.post(config.api.apiUrl + '/pingou_product_prize_list', opt, params)
    },
    // 拼购订单提交
    editPingouProductPrizeOrder: (params, opt) => {
        return request.post(config.api.apiUrl + '/edit_pingou_product_prize_order', opt, params)
    },
    // 拼购订单历史记录
    pingouProductParticipateList: (params, opt) => {
        return request.post(config.api.apiUrl + '/pingou_product_participate_list', opt, params)
    },
    // 获取最新拼购商品
    getNewPingouProduct: (params, opt) => {
        return request.post(config.api.serviceUrl + '/get_new_pingou_product', opt, params)
    },

    // 红包雨
    // 获取红包雨状态
    redPacketStatus: (params, opt) => {
        return request.post(config.api.serviceUrl + '/red_envelope_status', opt, params)
    },
    // 用户红包雨抢红包
    userRobRedPacket: (params, opt) => {
        return request.post(config.api.apiUrl + '/rob_red_envelope', opt, params)
    },
    // 用户红包雨开红包
    userOpenRedPacket: (params, opt) => {
        return request.post(config.api.apiUrl + '/open_red_envelope', opt, params)
    },
    // 商品列表
    allProducts: (params, opt) => {
        return request.post(config.api.apiUrl + '/all_products', opt, params)
    },
    // 用户收益余额明细
    userProfitBalanceLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_profit_balance_logs', opt, params)
    },
    // 用户冻结收益余额记录
    userFrozenProfitBalanceLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_frozen_profit_balance_logs', opt, params)
    },
    // 用户折扣金余额记录
    userDiscountBalanceLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_discount_balance_logs', opt, params)
    },
    // 用户冻结折扣金余额记录
    userFrozenDiscountBalanceLogs: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_frozen_discount_balance_logs', opt, params)
    },
    // 收益/折扣金转入余额
    transferToBalance: (params, opt) => {
        return request.post(config.api.apiUrl + '/transfer_to_balance', opt, params)
    },
    // 提现详情
    userWithdrawLogInfo: (params, opt) => {
        return request.post(config.api.apiUrl + '/user_withdraw_log_info', opt, params)
    },
}
